package com.forcht.common.domain;

import com.forcht.common.enumeration.MessageType;
import lombok.*;

import java.util.Date;

/**
 * Created by forcht on 2018/4/11.
 * 消息头部
 */
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MessageHeader {
    //消息的发送方
    private String sender;
    //消息的接收方
    private String receiver;
    //消息类型
    private MessageType messageType;
    //消息发送的时间
    private Date timestamp;

    @Override
    public String toString() {
        return "MessageHeader{" +
                "sender='" + sender + '\'' +
                ", receiver='" + receiver + '\'' +
                ", messageType=" + messageType +
                ", timestamp=" + timestamp +
                '}';
    }
}
